package com.ruoyi.system.domain.module.product;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import java.util.List;

/**
 * 桌位订单对象 product_order_table
 *
 * @author ruoyi
 * @date 2023-08-26
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("product_order_table")
public class ProductOrderTable implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 桌位id
     */
    private Long tableId;

    @Excel(name = "桌号")
    @TableField(exist = false)
    private String tableName;

    /**
     * 应付
     */

    @Excel(name = "应付")
    private BigDecimal totalPrice;

    /**
     * 已付
     */
    @Excel(name = "已付")
    private BigDecimal payPrice;

    /**
     * 支付时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date payTime;


    @Excel(name = "支付时间")
    @TableField(exist = false)
    private String payTimes;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remark;

//    private List<Long> orderId;

    @TableField(exist = false)
    private String beginDate;

    @TableField(exist = false)
    private String endDate;

}
